package com.atguigu.cloud.feignorder80.service;

import com.atguigu.cloud.common.entity.Payment;
import com.atguigu.cloud.common.vo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface OpenFeignPaymentService {
    @GetMapping("/payment/get/{id}")
    CommonResult get(@PathVariable String id);
    @GetMapping("/payment/create")
    CommonResult create(@RequestBody Payment payment);
}
